package main

import (
	"fmt"
	"time"
)

func main() {
	var t *time.Timer

	f := func() {
		fmt.Printf("Expiration time : %v.\n\r", time.Now())
		fmt.Printf("C's len: %d\n\r", len(t.C))
	}

	t = time.AfterFunc(1*time.Second, f)
	time.Sleep(2 * time.Second)
}
